package com.qf.serevice.Impl;

import com.qf.mapper.HospitalInfoMapper;
import com.qf.pojo.BaseResult;
import com.qf.serevice.HospitalInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HospitalInfoServiceImpl implements HospitalInfoService {
    BaseResult result = new BaseResult();
    @Resource
    HospitalInfoMapper hospitalInfoMapper;

    @Override
        public BaseResult findImg() {
        List<HospitalInfoMapper> img = hospitalInfoMapper.findImg();
        if (img!=null){
            result.setCode(1);
            result.setData(img);
            return result;
        }else {

            return result;
        }

    }
}
